<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>入仓面单</title>
    <style>

        @font-face {
            font-family: 'SimHei';
            src: url('{{ public_path('fonts/SimHei.ttf') }}') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        body {
            font-size: 12px;
            font-family: "SimHei", sans-serif;
        }
        .barcode-item {
            margin-bottom: 30px;
        }
    </style>
</head>
<body>
@foreach($data as $val)
    <div class="barcode-item">
        <img src="data:image/png;base64,{{ $val['barcode'] }}" alt="条形码 {{ $val['sn'] }}">
        <p>入仓号: {{ $val['sn'] }}</p>
        <p>大包数: {{ $val['num'] }}</p>
    </div>
@endforeach
</body>
</html>
